////
////#include "texturelibrary.h"
////#include "SFML\Graphics.hpp"
////
////using namespace sf;
////
////#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
////
////char *arrayText[] =
////{
////	"images/carSprite.png",
////	"images/carSprite.png",
////};
////
////int texturemain()
////{
////	// Work out the size of our texture array.
////	// What this code does is find out the size of an array in
////	// memory and divides that by the size of any single 
////	// element from the array.  If the array had 12 items that were
////	// 4-byte pointers, we'd be dividing that size (12*4) by 4 to
////	// get the number of items (12) again!  C++ doesn't have
////	// a function built in to get the size of an array.
////	int sizeofArrayText = sizeof(arrayText) / sizeof(arrayText[0]);
////
////	// Because of the macro we added to the top of the file, though,
////	// we could have just said:
////	//     int sizeofArrayText = ARRAY_SIZE(arrayText);
////
////
////	// This code looks through our array of image names and
////	// pre-loads them all in, adding them to the texture library:
////	for (int i = 0; i < sizeofArrayText; ++i)
////	{
////		TT::LoadTexture(arrayText[i]);
////	}
////
////	// Grab the texture from the texture library so we can use it a bit
////	// This code can go inside of any objects e.g. a car object
////	Texture *spaceShipTexture = TT::TextureLibrary["images/carSprite.png"];
////
////	// Make a sprite and set its origin:
////	Sprite spaceshipSprite(*spaceShipTexture);
////	spaceshipSprite.setOrigin(spaceShipTexture->getSize().x * 0.5f,
////		spaceShipTexture->getSize().y * 0.5f);
////
////	// Position the sprite:
////	spaceshipSprite.setPosition(512, 384);
////
////	// Make our rendering window and simple game loop:
////	RenderWindow window(VideoMode(1024, 768), "Cool Spaceship Game");
////
////	while (window.isOpen())
////	{
////		// Message Pump IS MISSING
////
////		window.clear();
////		window.draw(spaceshipSprite);
////		window.display();
////	}
////
////	return 0;
////}
////
////
